<?php
namespace app\techn_api\controller\v1;
use app\api\controller\v1\Base;
use think\Db;
use think\Request;


class Appeal extends Base
{
	public function _initialize()
	{
		parent::_initialize();
	}

    public function order_appeal(Request $request){
        $param = $request->param();
        if (!empty($param['order_id'])){
            $order_no = Db::name('order')->where('id',$param['order_id'])->value('order_no');
            if ($order_no){
                echo json_encode(['code'=>0,'msg'=>'订单号','data'=>['order_no'=>$order_no]]);
            }else{
                echo json_encode(['code'=>-1]);
            }
        }else{
            echo json_encode(['code'=>-1]);
        }
    }



    
}